import Layout from '@/layout'
const meta = { auth: true }
const _import = require('@/utils/util.import.' + process.env.NODE_ENV)

export default {
  path: '/vuetify',
  component: Layout,
  name: 'vuetify',
  meta,
  redirect: { name: 'vuetify-form' },
  children: (pre => [
    {
      path: 'form',
      component: _import('modules/vuetify/form/index.vue'),
      name: `${pre}form`,
      meta: { ...meta, title: 'form' }
    },
    {
      path: 'table',
      component: _import('modules/vuetify/table/index.vue'),
      name: `${pre}table`,
      meta: { ...meta, title: 'table' }
    },
  ]
  )('vuetify-')
}
